﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Akso.CodeGroups.Dto;
using Akso.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.CodeGroups
{
    public interface ICodeGroupAppService: IApplicationService
    {
        /// <summary>
        /// 获取数据记录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ListResultDto<CodeGroupListDto>> GetObjects(GetCodeGroupsInput input);
        /// <summary>
        /// 新增、编辑数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<CodeGroupEntity> CreateOrUpdateObject(CreateOrUpdateCodeGroupInput input);
        /// <summary>
        /// 在新增、编辑数据的弹出对话框中，获取对象的数据。
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetCodeGroupForEditOutput> GetObjectForEdit(NullableIdDto<Guid> input);
    }
}
